<?php
class ent_fullnews extends Lead_EDO_Object_Abstract
{
    static $_tables = array('ent_newsfull');
    
    
    public $dateformat = '';
    
    
    public function fetch($id)
    {
        parent::fetch($id);
        
   		if ($this->showdate) {
			$this->dateformat .= "j.n.Y";
		}
			
		if ($this->showtime) {
			$this->dateformat .= ", H:i";
		}

		// $this->destination2 = explode(";", $this->destination);					

    }
    
    
    public function NewsPageBox($newspage, $totalpages) {
		
               
        // $querystring = LED_QS_Get("newspage");
		$querystring = '';
		if ($totalpages != 1) {
			print "<div class=\"news_pages\">";
			for ($counter = 1; $counter <= $totalpages; $counter++) {
				if ($newspage == $counter) {
					print $counter;
				} else {
					print "<a href=\"?newspage=$counter\">$counter</a>";
				}
				if ($counter != $totalpages) {
					print " | ";
				}
			}
			print "</div>";
		}
	}

    

    
}
